package com.amigo.online.common.param.dto.goods;

import com.amigo.online.common.validate.group.Update;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @version: V 1.0.0
 * @Description: （商品编辑的请求实体） 
 * @author: zxy  QQ:1363320658
 * @date: 2018年12月20日 上午10:41:48  
 *
 */
public class GoodsEditDto {
	
	@NotNull(groups = {Update.class})
	@Min(value = 1, groups = {Update.class})
	private Long goodsId;
	
	@Min(1)
	private Long merchantId;
	
	@Valid
	@Size(min = 1)
	private List<String> goodsImgList = new ArrayList<>();
	
	private List<String> goodsVideoList = new ArrayList<>();
	
	@NotBlank
	private String goodsName;
	
	@Min(0)
	private Integer price;
	
	private Integer discountPrice;
	
	@Min(0)
	private Long category;
	
	@Min(0)
	@Max(1)
	private Integer isAutoShelf;
		
	private List<String> goodsDetailImgList = new ArrayList<>();
	
	public Long getGoodsId() {
		return goodsId;
	}
	public void setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
	}
	public List<String> getGoodsImgList() {
		return goodsImgList;
	}
	public void setGoodsImgList(List<String> goodsImgList) {
		this.goodsImgList = goodsImgList;
	}
	public String getGoodsName() {
		return goodsName;
	}
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	public Integer getPrice() {
		return price;
	}
	public void setPrice(Integer price) {
		this.price = price;
	}
	public Integer getDiscountPrice() {
		return discountPrice;
	}
	public void setDiscountPrice(Integer discountPrice) {
		this.discountPrice = discountPrice;
	}
	public Long getCategory() {
		return category;
	}
	public void setCategory(Long category) {
		this.category = category;
	}
	public List<String> getGoodsDetailImgList() {
		return goodsDetailImgList;
	}
	public void setGoodsDetailImgList(List<String> goodsDetailImgList) {
		this.goodsDetailImgList = goodsDetailImgList;
	}
	public List<String> getGoodsVideoList() {
		return goodsVideoList;
	}
	public void setGoodsVideoList(List<String> goodsVideoList) {
		this.goodsVideoList = goodsVideoList;
	}
	public Integer getIsAutoShelf() {
		return isAutoShelf;
	}
	public void setIsAutoShelf(Integer isAutoShelf) {
		this.isAutoShelf = isAutoShelf;
	}	
	public Long getMerchantId() {
		return merchantId;
	}
	public void setMerchantId(Long merchantId) {
		this.merchantId = merchantId;
	}

}
